home *** CD-ROM | disk | FTP | other *** search
Modula Implementation | 1996-03-01 | 830 b | 27 lines | [TEXT/3PRM] |
- implementation module fonts;
-
- import mac_types;
-
- GetFontName :: !Int !{#Char} !Toolbox -> (!{#Char},!Toolbox);
- GetFontName fontNum string256 tb = (GetFontName1 fontNum string256 tb, NewToolbox);
-
- GetFontName1 :: !Int !{#Char} !Toolbox -> {#Char};
- GetFontName1 fontNum string256 t = code (fontNum=D0,string256=U,t=U)(theName=A0){
- instruction 0x3AA00000 | li r21,0
- instruction 0x92B70004 | stw r21,4(r23)
- instruction 0x38970007 | addi r4,r23,7
- call .GetFontName
- };
-
- GetFNum :: !{#Char} !Toolbox -> (!Int,!Toolbox);
- GetFNum fontName t = code (fontName=R2SD0,t=O0D1U)(theNum=W,z=Z){
- call .GetFNum
- };
-
- RealFont :: !Int !Int !Toolbox -> (!Bool,!Toolbox);
- RealFont fontNum size t = code (fontNum=D0,size=D1,t=U)(is_real_font=D0,z=Z){
- call .RealFont
- instruction 0x70630001 | andi. r3,r3,1
- instruction 0x7C6300D0 | neg r3,r3
- };
-